package com.buss.customer.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

/**
 * 客户/供应商来源
 * @author gykl
 *
 */
@Entity
@Table(name = "customer_source")
@TableGenerator(name="source_pk_sequence",initialValue=1,allocationSize=1,pkColumnName="seq_col",
	pkColumnValue="source_seq",valueColumnName="seq_val",table="customer_pk_sequence")
public class CustomerSource implements Serializable{

	private static final long serialVersionUID = 8420142679048137923L;

	/**客户来源ID*/
	@Id
	@GeneratedValue(strategy=GenerationType.TABLE,generator="source_pk_sequence")
	private Long id;
	
	/**客户来源名称*/
	@Column(length=100,nullable=false)
	private String name;
	
	/**备注*/
	@Column(length=254)
	private String intro;
	
	/**所属单位ID*/
	@Column(length=20,nullable=false)
	private String companyId;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCompanyId() {
		return companyId;
	}

	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}

	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}
	
	
}
